package com.oo.polymorphic_4.fruit;

/**
 * Durian--${description}
 *
 * @author: Jovi
 * @createTime: 2017-04-19 11:00
 **/
public class Durian extends Fruit{

    public Durian() {
    }

    public Durian(String name, String flavor) {
        super(name, flavor);
    }

    @Override
    public void eat() {
        System.out.println(this.getName()+"\n口感："+this.getFlavor()+"\n需要剥掉厚重的外壳之后再吃");
    }
}
